module App::View
    class ErrorDialog < Qt::MessageBox
        def initialize(parent, message)
            super(parent)

            setText "Error: #{message}"
            setStandardButtons(Qt::MessageBox::Ok)

            setWindowTitle "Ktoggl error"
            setWindowIcon KDE::Icon.new("tools-report-bug")

            self.exec()
        end
    end
end
